package cn.edu.dgut.caolongxiu;

import com.dgut.autoconfig.Event;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@SpringBootApplication
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    //   @Component
    static class CustomCommandLineRunner implements CommandLineRunner {

        @Override
        public void run(String... args) {
            System.out.println("利用Spring Boot自动装配的CustomCommandLineRunner");
        }
    }

}
